package cn.gov.dao;

import cn.gov.vo.*;

import java.util.List;
import java.util.Map;

public interface IBedDAO {
	public List<Building> findAllBuilding();
    public List<Floor> findFloorByBuilding(int id);
    public List<Bed> findBedByRoom(int id);
    public List<Room> findRoomByFloor(int id);
    public boolean doCreate(Building vo);
    public boolean doCreateFloor(Floor vo);
    public boolean doCreateRoom(Room vo);
    public boolean doCreateBed(Bed vo);
    public void insertByBatchBuilding(List<Building> building);
    public int getBuildIdByName(String buildName);
    public int getFloorIdByName(String FloorName);
    public int getRoomIdByName(String roomName);
    public boolean doUpdate(Building vo );
    public boolean doUpdateFloor(Floor vo );
    public boolean doUpdateRoom(Room vo );
    public boolean doUpdateBed(Bed vo );
    public boolean doRemove(int id);
    public boolean doRemoveFloor(int id);
    public boolean doRemoveRoom(int id);
    public boolean doRemoveBed(int id);
    public Room findRoomById(int id);

}
